package com.party.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户信息表
 * </p>
 *
 * @author ccl
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PbUser对象", description="客户信息表")
public class PbUser extends Model<PbUser> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户编码")
    private String userCode;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "用户名")
    private String loginId;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "出生年月")
    private String birthday;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "角色编码权限组编码，多个编码用“,”分割")
    private String rolesCode;

    @ApiModelProperty(value = "头像url")
    private String picture;

    @ApiModelProperty(value = "角色名称")
    private String rolesName;

    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "部门编码")
    private String deptName;

    @ApiModelProperty(value = "状态0 - 停用 1 - 启用")
    private Integer prOnOff;

    @ApiModelProperty(value = "用户类型 0 - 个人用户 1 - 企业用户")
    private Integer userType;

    @ApiModelProperty(value = "职位")
    private String userJob;

    @ApiModelProperty(value = "身份证号")
    private String userIdcard;

    @ApiModelProperty(value = "操作人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @ApiModelProperty(value = "openid")
    private String openId;

    @TableField(exist = false)
    @ApiModelProperty(value = "设备id集合")
    private List<Long> deviceIds;

    @TableField(exist = false)
    @ApiModelProperty(value = "资源id集合")
    private List<Long> resourceIds;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
